#ifndef HTF_AI_INTERFACE_H
#define HTF_AI_INTERFACE_H

#ifdef __cplusplus
extern "C" {
#endif

/**
 * @brief Initialize the AI inference engine (platform-specific)
 * @return 0 for success, negative numbers for failure
 */
int htf_ai_init(void);

/**
 * @brief Perform one AI inference (input as a float array, output likewise)
 * @param input_data Pointer to input data
 * @param input_size Number of input elements
 * @param output_data Output buffer (allocated by the caller)
 * @param output_size Output buffer size (number of elements)
 * @return 0 for success, negative values for failure
 */
int htf_ai_run_inference(const float* input_data, int input_size,
                         float* output_data, int output_size);

/**
 * @brief Release AI resources
 */
void htf_ai_deinit(void);

#ifdef __cplusplus
}
#endif

#endif // HTF_AI_INTERFACE_H